<template>
    <div>
        <tabbar :msg="'/business'"></tabbar>
        <!-- 轮播图 -->
        <div style="padding-top: 50px;">
            <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
                <van-swipe-item>
                    <div class="swipe-item bg1">
                        <div class="bg1-text">
                            业务合作
                        </div>
                    </div>
                </van-swipe-item>
            </van-swipe>
        </div>
        <!-- 一对一 -->
        <div class="business">
            <div class="one_to_one">
                <div class="one_title">HWGPAY 您身边的支付专家</div>
                <div class="one_desc">多通道自由选择快速入网 迅速对接 安全收款</div>
                <div class="one_desc">支付无小事，支付安全由我们来保障</div>
                <div class="one_list">
                    <div class="one_item">
                        <img src="../../images/business/icon1.png" alt="">
                        <div>丰富通道</div>
                    </div>
                    <div class="one_item">
                        <img src="../../images/business/icon2.png" alt="">
                        <div>聚合支付</div>
                    </div>
                    <div class="one_item">
                        <img src="../../images/business/icon3.png" alt="">
                        <div>账户管理</div>
                    </div>
                    <div class="one_item">
                        <img src="../../images/business/icon4.png" alt="">
                        <div>售后无忧</div>
                    </div>
                </div>
            </div>
            <div class="business_box">
                <div class="business_item">
                    <div class="title" style="color: #0051C4;">获取您的支付解决方案</div>
                    <div class="business_input">
                        <input type="text" v-model="name" placeholder="请输入您的名字">
                        <input type="text" v-model="phone" placeholder="请输入您的手机号">
                        <input type="text" v-model="company" placeholder="请输入您的公司名称">
                        <input type="text" v-model="product" placeholder="请输入想要了解的支付产品">
                    </div>
                    <div class="btn" @click="submit">联系我们</div>
                </div>
            </div>
        </div>
        <!-- 支付产品 -->
        <!-- <div class="core_box">
            <div class="title">客户服务</div>
            <div class="core_li">
                <van-swipe class="my-swipes" :autoplay="3000" indicator-color="#006FBC">
                    <van-swipe-item>
                        <van-row gutter="13">
                            <van-col span="12">
                                <div class="core_item">
                                    <img src="../../images/product/icon1.png" alt="">
                                    <div class="core_title">产品支持</div>
                                    <div class="core_desc">
                                        专业研发团队，及时反馈合作商需求
                                    </div>
                                </div>
                            </van-col>
                            <van-col span="12">
                                <div class="core_item i2">
                                    <img src="../../images/product/icon2.png" alt="">
                                    <div class="core_title">物料支持</div>
                                    <div class="core_desc">通过网络推广得到的资源全部免费转交给当地合作商
                                    </div>
                                </div>
                            </van-col>
                            <van-col span="12">
                                <div class="core_item i3">
                                    <img src="../../images/product/icon3.png" alt="">
                                    <div class="core_title">推广支持</div>
                                    <div class="core_desc">引导用户签约，按协议主动完成扣款
                                    </div>
                                </div>
                            </van-col>
                            <van-col span="12">
                                <div class="core_item i4">
                                    <img src="../../images/product/icon4.png" alt="">
                                    <div class="core_title">市场支持</div>
                                    <div class="core_desc">提供产品的活动政策、营销推广、代理运营建议等
                                    </div>
                                </div>
                            </van-col>
                        </van-row>
                    </van-swipe-item>
                    <van-swipe-item>
                        <van-row gutter="13">
                            <van-col span="12">
                                    <div class="core_item i5">
                                        <img src="../../images/product/icon7.png" alt="">
                                        <div class="core_title">客服支持</div>
                                        <div class="core_desc">7*24小时的技术支持
                                        </div>
                                    </div>
                                </van-col>
                            <van-col span="12">
                                <div class="core_item i6">
                                    <img src="../../images/product/icon5.png" alt="">
                                    <div class="core_title">方案支持</div>
                                    <div class="core_desc">为全国合作商提供行业解决方案支持
                                    </div>
                                </div>
                            </van-col>
                            <van-col span="12">
                                <div class="core_item i7">
                                    <img src="../../images/product/icon6.png" alt="">
                                    <div class="core_title">培训支持</div>
                                    <div class="core_desc">在手机应用内调用支付接口，完成付款流程
                                    </div>
                                </div>
                            </van-col>

                            <van-col span="12">
                                <div class="core_item i8">
                                    <img src="../../images/product/icon8.png" alt="">
                                    <div class="core_title">资源支持</div>
                                    <div class="core_desc">为代理商提供大客户解决方案
                                    </div>
                                </div>
                            </van-col>
                        </van-row>
                    </van-swipe-item>
                </van-swipe>

            </div>
        </div> -->
        <!-- 底部 -->
        <footers></footers>
    </div>
</template>
<script>
import tabbar from "@/components/tabbar";
import footers from "@/components/footer";
import { websiteContactUs } from '@/api/home'
export default {
    name: 'home',
    components: {
        tabbar, footers
    },
    data() {
        return {
            name: '',
            phone: '',
            company: '',
            product: ''
        }
    },
    methods: {
        submit() {
            if (this.name == '') return this.$toast('请输入姓名');
            if (this.phone == '') return this.$toast('请输入手机号');
            // if (this.company == '') return this.$toast('请输入公司名称');
            // if (this.product == '') return this.$toast('请输入产品名称');
            let params = {
                name: this.name,
                phone: this.phone,
                company: this.company,
                product: this.product
            }
            this.$http.post(websiteContactUs, params).then(res => {
                this.$toast('提交成功')
                this.name = ''
                this.phone = ''
                this.company = ''
                this.product = ''
            })
        }
    }
}
</script>
<style scoped lang="scss">
.swipe-item {
    height: 152px;
    background: url('../../images/home/bg1.png') no-repeat center;
    background-size: cover;
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 18px;
    color: #FFFFFF;
    line-height: 24px;
    text-align: center;
    // line-height: 152px;
    position: relative;
}

.desc {
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 10px;
    color: #666666;
    text-align: center;
    margin-bottom: 18px;
}

.bg1 {
    background: url('../../images/business/bg1.png') no-repeat center;
    background-size: cover;
}

// .bg2 {
//     background: url('../../images/product/bg2.png') no-repeat center;
//     background-size: cover;
// }

// .bg3 {
//     background: url('../../images/product/bg3.png') no-repeat center;
//     background-size: cover;
// }

.bg1-text {
    width: 100%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bg2-text {
    text-align: left;
    width: 100%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.bg3-text {
    text-align: left;
    width: 100%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);

    div {
        font-weight: 400;
        font-size: 12px;
    }
}

.my-swipe {
    ::v-deep .van-swipe__indicator {
        width: 12px;
        height: 2px;
        border-radius: 0;
    }
}

.core_box {
    ::v-deep .van-swipe-item {
        padding-bottom: 20px;
    }

    ::v-deep .van-swipe__indicator {
        background: #D2D2D2;
    }
}

.core_box {
    background: #F6FBFE;
    padding-bottom: 10px;

    .core_li {
        padding: 0 12px;

        .core_item {
            width: 100%;
            height: 180px;
            // background: #FFFFFF;
            box-shadow: 0px 0px 8px 0px rgba(158,175,209,0.38);
            border-radius: 4px;
            margin-bottom: 12px;
            display: flex;
            // justify-content: center;
            flex-direction: column;
            align-items: center;
            // padding:0 0 18px 0;
            box-sizing: border-box;
            // background: url('../../images/business/icon5.png') no-repeat center;
            // background-size: cover;
            img {
                width: 52px;
                opacity: 0;
            }

            .core_title {
                font-family: PingFangSC, PingFang SC;
                font-weight: 500;
                font-size: 14px;
                color: #006FBC;
                margin-top:55px;
                text-align: center;
            }

            .core_desc {
                font-family: PingFangSC, PingFang SC;
                font-weight: 400;
                font-size: 12px;
                color: #666;
                margin-top: 10px;
                text-align: center;
                padding: 0 10px;
            }
        }
    }
}

.title {
    font-family: PingFangSC, PingFang SC;
    font-weight: 500;
    font-size: 16px;
    color: #333333;
    // margin: 24px 0 20px 0;
    padding: 24px 0 20px 0;
    text-align: center;
}

// 
.business {
    // height: 635px;
    background: url('../../images/business/bg2.png') no-repeat center;
    background-size: cover;
    // 
    box-sizing: border-box;

    .one_to_one {
        padding: 0 16px;
        padding-top: 26px;

        .one_title {
            font-family: PingFangSC, PingFang SC;
            font-weight: 500;
            font-size: 16px;
            color: #0051C4;
            position: relative;
            text-indent: 6px;
            margin-bottom: 16px;
        }

        .one_title::after {
            content: '';
            width: 2px;
            height: 18px;
            background: #0051C4;
            position: absolute;
            top: 3px;
            left: 0;
        }

        .one_desc {
            font-family: PingFangSC, PingFang SC;
            font-weight: 400;
            font-size: 14px;
            color: #333333;
            line-height: 20px;
        }

        .one_list {
            display: flex;
            justify-content: space-between;
            align-items: center;
            text-align: center;
            margin-top: 18px;
            font-family: PingFangSC, PingFang SC;
            font-weight: 400;
            font-size: 12px;
            color: #666666;

            .one_item {
                width: 25%;
                margin-bottom: 6px;
                img{
                    display: block;
                    margin: 0 auto;
                    width: 78px;
                }
            }
        }
    }

    .business_box {
        margin-top: 20px;
        // height: 398px;
        background: linear-gradient( 90deg, #0093DF 0%, #0051C4 100%);
        padding: 20px 16px;
        box-sizing: border-box;

        .business_item {
            // height: 358px;
            background: #FFFFFF;
            box-shadow: 2px 10px 22px 0px rgba(158, 175, 209, 0.36);
            border-radius: 4px;
            padding: 0 26px;
            padding-bottom: 24px;

            .business_input {


                input {
                    width: 100%;
                    height: 40px;
                    border-radius: 4px;
                    border: 1px solid #E5E5E5;
                    text-indent: 16px;
                    font-size: 14px;
                    margin-bottom: 14px;
                    // color: #999999;
                }
            }

            .btn {
                // width: 291px;
                height: 40px;
                background: #0051C4;
                border-radius: 4px;
                margin: 0 auto;
                line-height: 40px;
                text-align: center;
                font-family: PingFangSC, PingFang SC;
                font-weight: 400;
                font-size: 14px;
                color: #FFFFFF;
                margin-top: 16px;
            }
        }


    }
}
</style>